import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect:"goods",
      children:[
        {
          path:"/goods",
          name:'goods',
          component: () => import("../views/goods.vue")
        },
        {
          path: '/pinjia',
          name:'pinjia',
          component: () => import("../views/pinjia.vue")
        },
        {
          path: '/business',
          name:'business',
          component: () => import("../views/business.vue")
        }
      ]
    }
  ]
})



export default router
